﻿@{
    ViewBag.Title = "欢 迎 登 录";
    Layout = "../Shared/_Layout.cshtml";
}

<style type="text/css">
    .login_clear {
        clear: both;
        width: 100%;
        margin: 20px 0px 20px 0px;
    }

    #GetValidateCodeDiv {
        margin-top: -60px;
        margin-left: 210px;
    }

    #btnSave {
        background-color: #c61010;
        color: #fff;
        height: 40px;
        width: 300px;
        border: 0px;
        font-size: 18px;
        font-family: 'Microsoft YaHei';
        font-weight: 600;
    }

    .input {
        padding: 5px 4px;
        min-height: 28px;
        line-height: 28px;
        border: 1px solid #d4d4d4;
        background: #fff;
        vertical-align: middle;
        color: #333;
        font-size: 100%;
    }

        .input.normal {
            width: 250px;
        }

        .input.disabled {
            border: 0px solid #d4d4d4;
        }

        .input.txt {
            width: 150px;
        }

        .input:focus {
            background: #FFFBDE;
            border-color: #d4d4d4;
            outline: 1px solid #d4d4d4;
        }

    #main_login a {
        color: #C81623;
        font-size: 12px;
        font-weight: 400;
    }

        #main_login a:hover {
            color: #C81623;
        }

    .username_text {
        background: url("../Content/Images/username.png");
        width: 40px;
        height: 40px;
        float: left;
    }

    .password_text {
        background: url("../Content/Images/password.png");
        width: 40px;
        height: 40px;
        float: left;
    }

    .username_input {
        float: left;
    }
</style>

@using (Ajax.BeginForm(new AjaxOptions() { OnSuccess = "OnSuccess" }))
{ 
    <div class="line10"></div>
    <div id="main_body">
        <div id="main_login">
            <div id="login_left"></div>
            <div id="login_right">
                <div class="login_clear"></div>
                <div style="float: left; font-family: 'Microsoft YaHei'; font-weight: 800; font-size: 18px; color: #666;">会员登录</div>
              
                <div class="line10"></div>
                <div class="login_clear"></div>
                <div class="username_text"></div>
                <div class="username_input">@Html.TextBox("txtAccount", "", new { placeholder = "手机号码/邮箱", @class = "input normal", datatype = "*", nullmsg = "请输入账户名和密码" })</div>
                <div class="login_clear"></div>

                <div class="password_text"></div>
                <div class="username_input">@Html.Password("txtPassport", "", new { placeholder = "密码", @class = "input normal", datatype = "*", nullmsg = "请输入密码" })</div>
                @*     <div class="login_clear"></div>
            <div class="password_text"></div>
                  <div class="username_input">@Html.TextBox("validateCode", null, new { @class = "input txt" })</div>
                    <div class="login_clear"></div>
                  <div id="GetValidateCodeDiv">
                        <img id="valiCode" style="cursor: pointer; width: 90px; height: 40px;" src="/Login/GetValidateCode" alt="验证码" />
                  </div> *@
                <div style="height: 10px;"></div>
                <div class="login_clear"></div>
                <div style="float: left">
                    <input type="submit" class="btn" value="登    录" />
                </div>   <div class="line10"></div>
                <div class="line10"></div>
                  <div style="float: right">没有账号?<a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Login/Register">立即注册</a> &nbsp;&nbsp;<a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Login/ForgetPassword">忘记密码</a></div>
            </div>
        </div>
    </div>
    <div class="line10"></div>
    <script>
        function OnSuccess(e) {
            if (e.status == "-1") {
                $.dialog.alert(e.message);
            } else {
                window.location.href = e.message;
            }
        }
    </script>
}

